package cn.gok.oa.system.mapper;

import cn.gok.oa.system.dto.UserDto;
import cn.gok.oa.system.entity.TbUser;
import cn.gok.oa.system.vo.UserEmailList;
import cn.gok.oa.system.vo.UserListVo;
import cn.gok.oa.system.vo.UserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gok
 * @since 2022-08-04
 */
@Mapper
public interface TbUserMapper extends BaseMapper<TbUser> {
    public UserVo selectVo(@Param("user_id") int UserId);

    public IPage<UserListVo> getList(Page<UserListVo> page,@Param("userName") String userName,@Param("phone") String phone);
//    public int addUser(TbUser user);
    List<UserEmailList> emailGetUserList();
}

